package com.atguigu.vod.Utils;

import com.aliyuncs.profile.DefaultProfile;
import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.exceptions.ClientException;

/**
 * @Author zhaolie
 * @Date 2020/12/13 1:58 下午
 * @Version 1.0
 * @Description
 */

public class InitVodObject {
    public static DefaultAcsClient InitAcsObject(String accessKeyId, String accessKeySecret) throws ClientException {
        String regionId = "cn-shanghai";  // 点播服务接入区域
        DefaultProfile profile = DefaultProfile.getProfile(regionId, accessKeyId, accessKeySecret);
        DefaultAcsClient client = new DefaultAcsClient(profile);
        return client;
    }
}



